package main

import "fmt"

type Point struct {
	x int
	y int
}

func main() {

	var a interface{}
	var point Point = Point{1, 2}
	a = point

	var b Point
	// 类型断言
	b = a.(Point)
	fmt.Println(b)

	var x interface{}
	var b2 float32 = 1.1
	x = b2 // 空接口可以接收任意类型
	y := x.(float32)
	fmt.Println("y 类型是 %T 值是=%v", y, y)

}
